package com.xbl.mail.service.api;

import javax.annotation.Resource;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.xbl.mail.service.MyService;

@RestController
public class HelloController {
	@Resource(name = "myService")
	private MyService service;

	@RequestMapping(value = "/hello")
	public String hello() {
		service.add();
		return "hello";
	}
	/*
	@RequestMapping(value = "/session")
	public String session(HttpServletRequest req) {
		HttpSession session = req.getSession(true);
		User user = new User();
		user.setName("xbl");
		user.setAge(26);
		session.setAttribute("user", user);
		return "session test";
	}*/
}
